import request from "@/utils/request";

// 查询医疗卫生技术员列表
export function listTechnician(query) {
  return request({
    url: "zp/medicalTechnician/list",
    method: "get",
    params: query,
  });
}

// 查询医疗卫生技术员详细
export function getTechnician(id) {
  return request({
    url: "zp/medicalTechnician/" + id,
    method: "get",
  });
}

// 新增医疗卫生技术员
export function addTechnician(data) {
  return request({
    url: "zp/medicalTechnician",
    method: "post",
    data: data,
  });
}

// 修改医疗卫生技术员
export function updateTechnician(data) {
  return request({
    url: "/medical/technician",
    method: "put",
    data: data,
  });
}

// 删除医疗卫生技术员
export function delTechnician(id) {
  return request({
    url: "/medical/technician/" + id,
    method: "delete",
  });
}
